package com.wipz.eoa.iphone.costmanagent;

import java.util.ArrayList;
import java.util.List;

public class CostDetailProperties {
	private String id;
	private String fileName;
	private String detail_id;
	private String type;
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getDetail_id() {
		return detail_id;
	}
	public void setDetail_id(String detail_id) {
		this.detail_id = detail_id;
	}

	private boolean leaf=false;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public boolean isLeaf() {
		return leaf;
	}
	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}
	
	public static String returnTableNameBytype(int type){
		switch(type){
			case 001:
				return "EOA_REGULAR_EXPENSES";
			case 002:
				return "EOA_TRAVEL_REIMBURSE";
		}
		return "EOA_PURCHAS_EREIMBURS";
	}
	
	public static String returnDeatilTableNameByType(int type){
		switch (type) {
		case 001:
			return "EOA_COST_TRIFFIC_DETAIL";
		case 002:
			return "EOA_COST_PARTY_DETAIL";
		case 003:
			return "EOA_COST_OTHER_DETAIL";
		case 004:
			return "EOA_COST_LODGING_DETAIL";
		case 005:
			return "EOA_COST_PURCHASE_DETAIL";
		default:
			break;
		}
		return "";
	}
}
